package com.liangzhong.model.type
{
	/**
	 * 比赛类型 
	 * @author lake
	 * 
	 */	
	public class MatchType
	{
		/**
		 * 1.	预选赛
		 */		
		public static const PRE_MATCH 			:int = 1;
		/**
		 * 2.	甲级联赛
		 */		
		public static const BASE_MATCH 		:int = 2;
		/**
		 * 3.	欧冠联赛
		 */		
		public static const CHAMPION_MATCH		:int = 3;
		/**
		 * 4.	传奇 
		 */		
		public static const LEGEND_MATCH		:int = 4;
		/**
		 * 天梯赛
		 */		
		public static const LADDYMATCH			:int = 5;
		/**
		 * 国家对抗赛
		 */		
		public static const COUNTRY_MATCH		:int = 6;
		/**
		 * 好友赛
		 */		
		public static const FRIENDMATCH		:int = 7;
		/**
		 * 友谊赛
		 */		
		public static const FRIENDSHIPMATCH	:int = 8;
		/**
		 * 大奖赛
		 */		
		public static const GRANDMATCH			:int = 9;
		/**
		 *巡回赛 
		 */		
		public static const TOURMATCH			:int = 10;
		/**
		 *联盟赛 
		 */		
		public static const ALLIANCEMATCH		:int = 11;
		/**
		 *获取比赛类型名称 
		 * @param type
		 * @return 
		 * 
		 */		
		public static function getTypeName(type:int):String
		{
			var typeName :String = "";
			switch(type)
			{
				case PRE_MATCH://
				{
					typeName = "预选赛";
					break;
				}
				case BASE_MATCH://
				{
					typeName = "甲级联赛";
					break;
				}
				case CHAMPION_MATCH://
				{
					typeName = "冠军联赛";
					break;
				}
				case LEGEND_MATCH://
				{
					typeName = "传奇";
					break;
				}
				case LADDYMATCH://
				{
					typeName = "天梯赛";
					break;
				}
				case COUNTRY_MATCH://
				{
					typeName = "国家挑战赛";
					break;
				}
				case FRIENDMATCH://
				{
					typeName = "好友赛";
					break;
				}
				default:
				{
					typeName = "比赛";
				}
			}
			return typeName;
		}
	}
}